package com.fds;

import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;

public class AndroidGolfActivity extends Activity {
    /** Called when the activity is first created. */
	Gallery myGallery;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.main);
        
        ImageView myImageView = (ImageView)findViewById(R.id.imageView1);
        myImageView.setScaleType(ScaleType.FIT_XY);
        
        MySeekBar seekbar = (MySeekBar)findViewById(R.id.seekBar1);
        seekbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {
			
			@Override
			public void onStopTrackingTouch(SeekBar seekBar) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void onStartTrackingTouch(SeekBar seekBar) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void onProgressChanged(SeekBar seekBar, int progress,
					boolean fromUser) {
				// TODO Auto-generated method stub
				((MySeekBar)seekBar).handleOnSlideEvent(progress);
			}
		});

/*		MyImageView myImageView = new MyImageView(this);
        myImageView.setImageResource(R.drawable.golf3);
        myImageView.setScaleType(ScaleType.FIT_XY);
        
        SeekBar seekBar = new SeekBar(this);
        
        
        
		LinearLayout linearLayout = new LinearLayout(this);
		linearLayout.setOrientation(LinearLayout.VERTICAL);
		linearLayout.addView(myImageView);
		linearLayout.addView(seekBar);
        
        setContentView(linearLayout);*/
    
    }

}